package com.prawn.ift.datasearch.client;

import com.prawn.ift.datasearch.client.impl.IftCollEquipmentClientImpl;
import entity.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @Auther: zhy
 * @Date: 2019/7/11
 * @Description:
 */
@FeignClient(value = "prawn-ift-collequipment",fallback = IftCollEquipmentClientImpl.class)
public interface IftCollEquipmentClient {

    @RequestMapping(value="/equipment/{id}",method= RequestMethod.GET)
    Result findById(@PathVariable("id") String id);
    @RequestMapping(method= RequestMethod.GET)
    Result findAll();

}
